package cn.petplatform.petback.service.publishpets;

import cn.petplatform.dto.ResponseDto;
import cn.petplatform.petback.pojo.Pet;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;

/**
 * @author LNL
 * @date 2021/5/15 16:35
 */
public interface PublishPetsService {
    /**
     * 获取所有发布信息
     * @return
     */
    ResponseDto getAllPublishPets();


    /**
     * 发布宠物
     * @return
     */
    ResponseDto insertPublishPet(MultipartHttpServletRequest request);

    /**
     * 删除发布的宠物
     * @param id
     * @return
     */
    ResponseDto deletePublishPet(String id);

    /**
     * 获取个人发布宠物
     * @param id
     * @return
     */
    ResponseDto getPublishPetsByPerson(String id);

    /**
     * 获取所有信息
     * @return
     */
    ResponseDto getAllPublishes();

    ResponseDto getPublishPets(String msg);

    ResponseDto getDetailPet(String id);
}
